﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="showChangeover.aspx.cs"
    Inherits="WorkOrder.showChangeover" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>割接单信息_工单管理支持系统</title>
    <link href="../css/left.css" type="text/css" rel="STYLESHEET" />
    <link href="../css/site2.css" type="text/css" rel="STYLESHEET" />
    <link rel="Shortcut Icon" href="../favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="../css/subModal.css" />
    <script type="text/javascript" src="../js/common.js" defer="defer"></script>
    <script type="text/javascript" src="../js/subModal.js" defer="defer"></script>
    <script type="text/javascript" src="../js/cookie.js" defer="defer"></script>
    <style type="text/css">
        .style1
        {
            height: 24px;
            width: 120px;
        }
        .style2
        {
            width: 120px;
        }
        .style3
        {
            width: 250px;
        }
    </style>
    <script language="javascript" type="text/javascript">        //加在head中，PNG无灰色背景
        var tmp = window.navigator.userAgent.toLowerCase().indexOf("MSIE");
        //加在head中，PNG无灰色背景
        function correctPNG() {
            for (var i = 0; i < document.images.length; i++) {
                var img = document.images[i];
                var imgName = img.src.toUpperCase();
                if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
                    var imgID = (img.id) ? "id='" + img.id + "' " : "";
                    var imgClass = (img.className) ? "class='" + img.className + "' " : "";
                    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
                    var imgStyle = "display:inline-block;" + img.style.cssText;
                    if (img.align == "left") imgStyle = "float:left;" + imgStyle;
                    if (img.align == "right") imgStyle = "float:right;" + imgStyle;
                    if (tmp >= 1) {
                        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    else {
                        if (img.parentNode.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
       + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
                    img.outerHTML = strNewHTML;

                }
            }
        }

        if (window.addEventListener) {
            window.addEventListener('DOMContentLoaded', correctPNG, false);   //firefox
            window.addEventListener('load', correctPNG, false);
        } else if (window.attachEvent) {
            window.attachEvent('onload', correctPNG);  //IE
        }
    </script>
    <script type="text/javascript">
        String.prototype.trim = function () {
            // 用正则表达式将前后空格，用空字符串替代。
            return this.replace(/(^\s*)|(\s*$)/g, "");
        }

        function EditTable() {
            var tmp = document.getElementById("GridView1");
            if (tmp != null) {
                if (window.returnValue == "OK") {
                    var i = getFramesIndex("hidProblem_start_time");
                    if (i >= 0) {
                        //                        if (window.frames[i].document.getElementById("hidProblem_start_time").value != "") {
                        //                            tmp.rows(rIndex).cells(1).innerText = window.frames[i].document.getElementById("HidProblem_type").value;
                        //                            tmp.rows(rIndex).cells(2).innerText = window.frames[i].document.getElementById("hidDsc").value;
                        //                            tmp.rows(rIndex).cells(3).innerText = window.frames[i].document.getElementById("hidProblem_start_time").value;
                        //                            tmp.rows(rIndex).cells(4).innerText = window.frames[i].document.getElementById("hidProblem_end_time").value;
                        //                            if (tmp.rows(rIndex).cells(1).innerText == "undefined") tmp.rows(rIndex).cells(1).innerText = "";
                        //                            if (tmp.rows(rIndex).cells(2).innerText == "undefined") tmp.rows(rIndex).cells(2).innerText = "";
                        //                            if (tmp.rows(rIndex).cells(3).innerText == "undefined") tmp.rows(rIndex).cells(3).innerText = "";
                        //                            if (tmp.rows(rIndex).cells(4).innerText == "undefined") tmp.rows(rIndex).cells(4).innerText = "";
                        //                        }
                        //                        else {
                        window.location.reload(); //document.location.reload();
                        //                        }
                    }
                }
            }
        }

        function ShowPopup(alable, url, tmp) {
            rowIndex(alable.parentElement.parentElement.rowIndex);
            var id = document.getElementById("hidID").value;
            if (id != "")
                showPopWin('割接问题', 'addChangeoverProblems.aspx?cid=' + id, 700, 260, EditTable, true);
            if (tmp == 5)
                showPopWin('割接问题', url + "&x=" + Math.round(Math.random() * 10000), 700, 260, EditTable, true);
        }

        function showDiv1() {
            if (document.getElementById("div1").style.display == "block")
                document.getElementById("div1").style.display = "none";
            else
                document.getElementById("div1").style.display = "block";
        }
        function showDiv2() {
            if (document.getElementById("div2").style.display == "block")
                document.getElementById("div2").style.display = "none";
            else
                document.getElementById("div2").style.display = "block";
        }
        function showDiv3() {
            if (document.getElementById("div3").style.display == "block")
                document.getElementById("div3").style.display = "none";
            else
                document.getElementById("div3").style.display = "block";
        }
        function showDiv4() {
            if (document.getElementById("div4").style.display == "block")
                document.getElementById("div4").style.display = "none";
            else
                document.getElementById("div4").style.display = "block";
        }
        function showDiv5() {
            if (document.getElementById("div5").style.display == "block")
                document.getElementById("div5").style.display = "none";
            else
                document.getElementById("div5").style.display = "block";
        }
        var arrZhongqu = new Array(); //2
        arrZhongqu[0] = new Array('大岭山', '6');
        arrZhongqu[1] = new Array('大朗', '7');
        arrZhongqu[2] = new Array('黄江', '8');
        arrZhongqu[3] = new Array('常平', '9');
        arrZhongqu[4] = new Array('东坑', '28');

        var arrChengqu = new Array(); //1
        arrChengqu[0] = new Array('万江', '1');
        arrChengqu[1] = new Array('南城', '2');
        arrChengqu[2] = new Array('东城', '3');
        arrChengqu[3] = new Array('莞城', '4');
        arrChengqu[4] = new Array('松山湖', '5');

        var arrDongqu = new Array(); //3
        arrDongqu[0] = new Array('凤岗', '10');
        arrDongqu[1] = new Array('塘厦', '11');
        arrDongqu[2] = new Array('清溪', '12');
        arrDongqu[3] = new Array('谢岗', '13');
        arrDongqu[4] = new Array('樟木头', '14');
        arrDongqu[5] = new Array('桥头', '31');

        var arrNanqu = new Array(); //4
        arrNanqu[0] = new Array('虎门', '15');
        arrNanqu[1] = new Array('长安', '16');
        arrNanqu[2] = new Array('沙田', '23');

        var arrXiqu = new Array(); //5
        arrXiqu[0] = new Array('中堂', '17');
        arrXiqu[1] = new Array('望牛墩', '18');
        arrXiqu[2] = new Array('麻涌', '19');
        arrXiqu[3] = new Array('高埗', '20');
        arrXiqu[4] = new Array('道滘', '21');
        arrXiqu[5] = new Array('洪梅', '22');
        arrXiqu[6] = new Array('厚街', '24');

        var arrBeiqu = new Array(); //6
        arrBeiqu[0] = new Array('石碣', '25');
        arrBeiqu[1] = new Array('石龙', '26');
        arrBeiqu[2] = new Array('石排', '27');
        arrBeiqu[3] = new Array('寮步', '29');
        arrBeiqu[4] = new Array('横沥', '30');
        arrBeiqu[5] = new Array('茶山', '32');
        arrBeiqu[6] = new Array('企石', '33');

        function resetSelectByArray(sValue) {
            var selectValue = sValue;
            var Obj = document.getElementById("seleTown");
            var arrLen = 0;
            var i = 0;
            var optText;
            var optValue;
            if (selectValue == "1") {
                arrLen = arrChengqu.length;
                Obj.options.length = 0;
                Obj.options.add(new Option('-- 请选择 --', '0'));
                for (i = 0; i < arrLen; i++) {
                    optText = arrChengqu[i][0];
                    optValue = arrChengqu[i][1];
                    Obj.options.add(new Option(optText, optValue));
                }
            }
            else if (selectValue == "2") {
                arrLen = arrZhongqu.length; Obj.options.length = 0;
                Obj.options.add(new Option('-- 请选择 --', '0'));
                for (i = 0; i < arrLen; i++) {
                    optText = arrZhongqu[i][0];
                    optValue = arrZhongqu[i][1];
                    Obj.options.add(new Option(optText, optValue));
                }
            }
            else if (selectValue == "3") {
                arrLen = arrDongqu.length; Obj.options.length = 0;
                Obj.options.add(new Option('-- 请选择 --', '0'));
                for (i = 0; i < arrLen; i++) {
                    optText = arrDongqu[i][0];
                    optValue = arrDongqu[i][1];
                    Obj.options.add(new Option(optText, optValue));
                }
            }
            else if (selectValue == "4") {
                arrLen = arrNanqu.length; Obj.options.length = 0;
                Obj.options.add(new Option('-- 请选择 --', '0'));
                for (i = 0; i < arrLen; i++) {
                    optText = arrNanqu[i][0];
                    optValue = arrNanqu[i][1];
                    Obj.options.add(new Option(optText, optValue));
                }
            }
            else if (selectValue == "5") {
                arrLen = arrXiqu.length; Obj.options.length = 0;
                Obj.options.add(new Option('-- 请选择 --', '0'));
                for (i = 0; i < arrLen; i++) {
                    optText = arrXiqu[i][0];
                    optValue = arrXiqu[i][1];
                    Obj.options.add(new Option(optText, optValue));
                }
            }
            else if (selectValue == "6") {
                arrLen = arrBeiqu.length; Obj.options.length = 0;
                Obj.options.add(new Option('-- 请选择 --', '0'));
                for (i = 0; i < arrLen; i++) {
                    optText = arrBeiqu[i][0];
                    optValue = arrBeiqu[i][1];
                    Obj.options.add(new Option(optText, optValue));
                }
            }
            else if (selectValue == "7") {
                Obj.options.length = 0;
                Obj.options.add(new Option('-- 请选择 --', '0'));
                Obj.options.add(new Option('集客', '34'));
            }
            else if (selectValue == "8") {
                Obj.options.length = 0;
                Obj.options.add(new Option('-- 请选择 --', '0'));
                Obj.options.add(new Option('内部客户', '35'));
            }
            else {
                Obj.options.length = 0;
                Obj.options.add(new Option('-- 请选择 --', '0'));
            }
        }

        function isNumber(oNum) {
            if (!oNum) return false;
            var strP = /^\d+(\.\d+)?$/;
            if (!strP.test(oNum)) return false;
            try {
                if (parseFloat(oNum) != oNum) return false;
            }
            catch (ex) {
                return false;
            }
            return true;
        }

        String.prototype.trim = function () {
            // 用正则表达式将前后空格，用空字符串替代。
            return this.replace(/(^\s*)|(\s*$)/g, "");
        }

        function saveValidate() {
            //form1.action = "addWorkOrder.aspx?a=0";
            if (document.getElementById("txtBusinessOrderNo").value.trim() == "")
            { alert("请输入业务单号！"); return; }
            if (document.getElementById("txtStation").value.trim() == "")
            { alert("请输入站点名称！"); return; }
            if (document.getElementById("ddlProduct").value == "0")
            { alert("请选择产品类型！"); return; }
            if (document.getElementById("seleArea").value == "0")
            { alert("请选择区域！"); return; }
            if (document.getElementById("seleTown").value == "0" && (document.getElementById("seleArea").value != "7" || document.getElementById("seleArea").value != "8"))
            { alert("请选择镇区！"); return; }
            else { document.getElementById("hidTown").value = document.getElementById("seleTown").value; }
            if (document.getElementById("txtCustomer").value.trim() == "")
            { alert("请输入客户联系人！"); return; }
            if (document.getElementById("txtCustomerTell").value.trim() == "")
            { alert("请输入客户电话！"); return; }
            if (document.getElementById("txtCustomerAdd").value.trim() == "")
            { alert("请输入客户地址！"); return; }
            if (document.getElementById("ddlFactory").value == "0")
            { alert("请选择设备厂家！"); return; }
            //if (document.getElementById("txtModel").value.trim() == "")
            //{ alert("请输入设备型号！"); return; }
            if (document.getElementById("ddlSupervision").value == "0")
            { alert("请选择监理单位！"); return; }
            //if (document.getElementById("txtSupervision").value.trim() == "")
            //{ alert("请输入监理人员！"); return; }
            if (document.getElementById("ddlIntegrated").value == "0")
            { alert("请选择集成单位！"); return; }
            //if (document.getElementById("txtIntegrated").value.trim() == "")
            //{ alert("请输入集成人员！"); return; }
            if (document.getElementById("ddlDebuggion").value == "0")
            { alert("请选择软调单位！"); return; }
            if (document.getElementById("txtFirsetCutTime").value.trim() == "")
            { alert("请输入初次进场割接时间！"); return; }
            if (document.getElementById("txtDebErrTimes").value.trim() != "" && !isNumber(document.getElementById("txtDebErrTimes").value.trim()))
            { alert("软调工作确认表不准确次数必须是数字！"); return; }
            if (document.getElementById("txtTestErrTimes").value.trim() != "" && !isNumber(document.getElementById("txtTestErrTimes").value.trim()))
            { alert("拨测表不准确次数必须是数字！"); return; }
            form1.submit();
        }
    </script>
</head>
<body style="margin: 0 0 0 0; background-color: #fff; border-left: solid 1px #54a6e2;"
    onload="document.getElementById('txtBusinessOrderNo').disabled = true;">
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%">
            <tr>
                <td>
                    <div style="border: solid 1px #9fd6ff; background-color: #d4f1f9; border-bottom: none;">
                        <table style="width: 100%; cursor: pointer;">
                            <tr>
                                <td style="height: 20px;">
                                    &nbsp;&nbsp;<img alt="" align="absmiddle" src="../images/181.gif" />&nbsp; <strong>割接单信息</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="Button1" runat="server" class="Button" Text="&nbsp;保&nbsp;&nbsp;&nbsp;&nbsp;存&nbsp;"
                                        OnClientClick="saveValidate();" OnClick="btnSave_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="divAdd" style="border: solid 1px #9fd6ff; background-color: #f0f8ff; display: block;">
                        <table style="width: 100%">
                            <tr>
                                <td style="height: 10px">
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                </td>
                                <td>
                                    <table id="tab2" style="width: 730px; border: solid 1px #9fd6ff">
                                        <tr>
                                            <td align="left" class="style1">
                                                业务单号：
                                            </td>
                                            <td align="left" class="style3">
                                                <input id="txtBusinessOrderNo" type="text" runat="server" class="TextBox" style="width: 195px"
                                                    disabled="disabled" />
                                            </td>
                                            <td align="left" style="width: 110px">
                                                站点名称：
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtStation" runat="server" CssClass="TextBox" Width="195px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                产品类型：
                                            </td>
                                            <td align="left" class="style3">
                                                <asp:DropDownList ID="ddlProduct" runat="server" CssClass="TextBox" Width="200px">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left">
                                                镇区：
                                            </td>
                                            <td align="left">
                                                <select id="seleArea" runat="server" style="width: 100px;" class="TextBox" onblur="resetSelectByArray(this.value);"
                                                    onchange="resetSelectByArray(this.value);" name="D2">
                                                    <option value="0" selected="selected">-- 请选择 --</option>
                                                    <option value="1">城区</option>
                                                    <option value="2">中区</option>
                                                    <option value="3">东区</option>
                                                    <option value="4">南区</option>
                                                    <option value="5">西区</option>
                                                    <option value="6">北区</option>
                                                    <option value="7">集客</option>
                                                    <option value="8">内部客户</option>
                                                </select><select id="seleTown" runat="server" style="width: 100px;" class="TextBox"
                                                    name="seleTown">
                                                </select>
                                                <input id="hidTown" type="hidden" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                客户联系人：
                                            </td>
                                            <td align="left" class="style3">
                                                <input id="txtCustomer" type="text" runat="server" class="TextBox" style="width: 195px" />
                                            </td>
                                            <td align="left">
                                                客户电话：
                                            </td>
                                            <td align="left">
                                                <input id="txtCustomerTell" type="text" runat="server" class="TextBox" style="width: 195px" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                客户地址：
                                            </td>
                                            <td align="left" colspan="3">
                                                <input id="txtCustomerAdd" type="text" runat="server" class="TextBox" style="width: 563px" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                设备厂家：
                                            </td>
                                            <td align="left" class="style3">
                                                <asp:DropDownList ID="ddlFactory" runat="server" Width="200px">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left">
                                                设备型号：
                                            </td>
                                            <td align="left">
                                                <input id="txtModel" type="text" runat="server" class="TextBox" style="width: 195px" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                监理单位：
                                            </td>
                                            <td align="left" class="style3">
                                                <asp:DropDownList ID="ddlSupervision" runat="server" CssClass="TextBox" Width="200px">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left">
                                                监理人员：
                                            </td>
                                            <td align="left">
                                                <input id="txtSupervision" type="text" runat="server" class="TextBox" style="width: 195px" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                集成单位：
                                            </td>
                                            <td align="left" class="style3">
                                                <asp:DropDownList ID="ddlIntegrated" runat="server" CssClass="TextBox" Width="200px">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left">
                                                集成人员：
                                            </td>
                                            <td align="left">
                                                <input id="txtIntegrated" type="text" runat="server" class="TextBox" style="width: 195px" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                软调单位：
                                            </td>
                                            <td align="left" class="style3">
                                                <asp:DropDownList ID="ddlDebuggion" runat="server" CssClass="TextBox" Width="200px">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left">
                                                软调人员：
                                            </td>
                                            <td align="left">
                                                <input id="txtDebuggion" type="text" runat="server" class="TextBox" style="width: 195px" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                初次进场割接时间：
                                            </td>
                                            <td align="left" class="style3">
                                                <asp:TextBox ID="txtFirsetCutTime" runat="server" CssClass="TextBox" Width="195px"></asp:TextBox>
                                            </td>
                                            <td align="left">
                                                试通时间：
                                            </td>
                                            <td align="left">
                                                <input id="txtTryTime" type="text" runat="server" class="TextBox" style="width: 195px" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                申维时间：
                                            </td>
                                            <td align="left" class="style3">
                                                <asp:TextBox ID="txtAppMaiTime" runat="server" CssClass="TextBox" Width="195px"></asp:TextBox>
                                            </td>
                                            <td align="left">
                                                成功交维时间：
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtConMaiTime" runat="server" CssClass="TextBox" Width="195px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                最终回访时间：
                                            </td>
                                            <td align="left" class="style3">
                                                <input id="txtReturnVisit" type="text" runat="server" class="TextBox" style="width: 195px" />
                                            </td>
                                            <td align="left">
                                                回访超时：
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblReturn" runat="server" ForeColor="Red" Font-Bold="True" Font-Names="Arial"></asp:Label>&nbsp;天
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                当前状态：
                                            </td>
                                            <td align="left" class="style3">
                                                <asp:DropDownList ID="ddlStatus" runat="server" CssClass="TextBox" Width="200px">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px; height: 2px;">
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <tr>
                                <td style="width: 10px; height: 2px;">
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <table onclick="showDiv1();" style="cursor: pointer; width: 730px; border: solid 1px #9fd6ff;
                                        background: #d4f1f9">
                                        <tr>
                                            <td>
                                                <img alt="" src="../images/flag_green.gif" width="16px" height="16px" />软调信息
                                            </td>
                                        </tr>
                                    </table>
                                    <div id="div1" style="display: block;">
                                        <table style="width: 730px; border: solid 1px #9fd6ff; border-top: none;">
                                            <tr>
                                                <td style="width: 170px; height: 24px">
                                                    软调工作确认表最终提交时间：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtDebConfTime" runat="server" CssClass="TextBox" Width="170px"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;超时&nbsp;<asp:Label
                                                        ID="lblDebug" runat="server" Text="" ForeColor="Red" Font-Bold="True" Font-Names="Arial"></asp:Label>&nbsp;天
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 170px; height: 24px">
                                                    软调工作确认表不准确次数：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtDebErrTimes" runat="server" CssClass="TextBox" Width="155px"></asp:TextBox>&nbsp;次
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px; height: 2px;">
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <table onclick="showDiv4();" style="cursor: pointer; width: 730px; border: solid 1px #9fd6ff;
                                        background: #d4f1f9">
                                        <tr>
                                            <td>
                                                <img alt="" src="../images/flag_green.gif" width="16px" height="16px" />割接问题
                                            </td>
                                        </tr>
                                    </table>
                                    <div id="div4" style="display: block;">
                                        <table style="width: 730px; border: solid 1px #9fd6ff; border-top: none;">
                                            <tr>
                                                <td style="width: 170px; height: 24px">
                                                    <img align="absmiddle" src="../images/drop-add.gif" /><a href="#" id="A1" onclick="ShowPopup(this,'addChangeoverProblems.aspx',0)"><span
                                                        style="border: 1px; border-bottom: solid 1px #008000">新增割接问题</span></a>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 170px; height: 24px; vertical-align: top;">
                                                    <asp:GridView ID="GridView1" runat="server" Width="690px" AutoGenerateColumns="False"
                                                        EmptyDataText="[没有操作记录]" OnRowDataBound="gvReport_RowDataBound" Font-Names="Arial"
                                                        CssClass="Table">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                    <a href="#" onclick="ShowPopup(this,'addChangeoverProblems.aspx?a=1&b=<%# Eval("cute_problem_id") %>&c=<%# Eval("changeover_id") %>',5);"
                                                                        title="编辑">&nbsp;&nbsp;<img align="absmiddle" src="../images/note.gif" style="width: 16px;
                                                                            height: 16px; border: none" title="编辑" />&nbsp;&nbsp;</a>
                                                                </ItemTemplate>
                                                                <HeaderStyle CssClass="gridtitle" />
                                                                <ItemStyle Width="30px" HorizontalAlign="Center" />
                                                            </asp:TemplateField>
                                                            <%--
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lbtnDel" runat="server" OnClientClick="return confirm('您真的要删除一行数据吗？')"
                                                                CommandName="Del" CommandArgument='<%# Eval("order_record_id") %>' ToolTip="删除">
                                                                &nbsp;&nbsp;<img align="absmiddle" src="./images/note_delete.gif" style="width:16px; height:16px; border:none" title="删除" />&nbsp;&nbsp;
                                                                </asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle CssClass="gridtitle" />
                                                        <ItemStyle Width="35px" />
                                                    </asp:TemplateField>
                                                            --%>
                                                            <asp:BoundField DataField="changeover_problems_type_name" HeaderText="问题类型" ReadOnly="True">
                                                                <HeaderStyle CssClass="gridtitle" />
                                                                <ItemStyle Width="80px" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="cute_problem_desc" HeaderText="问题描述" ReadOnly="True">
                                                                <HeaderStyle CssClass="gridtitle" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="problem_strat_time" HeaderText="产生时间" ReadOnly="True">
                                                                <HeaderStyle CssClass="gridtitle" />
                                                                <ItemStyle Width="120px" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="problem_end_time" HeaderText="解决时间" ReadOnly="True">
                                                                <HeaderStyle CssClass="gridtitle"></HeaderStyle>
                                                                <ItemStyle Width="120px"></ItemStyle>
                                                            </asp:BoundField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px; height: 2px;">
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <table onclick="showDiv2();" style="cursor: pointer; width: 730px; border: solid 1px #9fd6ff;
                                        background: #d4f1f9">
                                        <tr>
                                            <td>
                                                <img alt="" src="../images/flag_green.gif" width="16px" height="16px" />拨测表信息
                                            </td>
                                        </tr>
                                    </table>
                                    <div id="div2" style="display: block;">
                                        <table style="width: 730px; border: solid 1px #9fd6ff; border-top: none;">
                                            <tr>
                                                <td style="width: 170px; height: 24px">
                                                    拨测表最终提交时间：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtTestTime" runat="server" CssClass="TextBox" Width="170px"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;超时&nbsp;<asp:Label
                                                        ID="lblTest" runat="server" Text="" ForeColor="Red" Font-Bold="True" Font-Names="Arial"></asp:Label>&nbsp;天
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 170px; height: 24px">
                                                    拨测表不准确次数：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtTestErrTimes" runat="server" CssClass="TextBox" Width="155px"></asp:TextBox>&nbsp;次
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px; height: 2px;">
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <table onclick="showDiv3();" style="cursor: pointer; width: 730px; border: solid 1px #9fd6ff;
                                        background: #d4f1f9">
                                        <tr>
                                            <td>
                                                <img alt="" src="../images/flag_green.gif" width="16px" height="16px" />交付客户使用
                                            </td>
                                        </tr>
                                    </table>
                                    <div id="div3" style="display: block;">
                                        <table style="width: 730px; border: solid 1px #9fd6ff; border-top: none;">
                                            <tr>
                                                <td style="width: 170px; height: 24px">
                                                    交付客户使用时间：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtDeliveryTime" runat="server" CssClass="TextBox" Width="170px"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;超时&nbsp;<asp:Label
                                                        ID="lblDe" runat="server" ForeColor="Red" Font-Bold="True" Font-Names="Arial"></asp:Label>&nbsp;天
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px; height: 2px;">
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <table onclick="showDiv5();" style="cursor: pointer; width: 730px; border: solid 1px #9fd6ff;
                                        background: #d4f1f9">
                                        <tr>
                                            <td>
                                                <img alt="" src="../images/flag_green.gif" width="16px" height="16px" />割接状态记录
                                            </td>
                                        </tr>
                                    </table>
                                    <div id="div5" style="display: block;">
                                        <table style="width: 730px; border: solid 1px #9fd6ff; border-top: none;">
                                            <tr>
                                                <td>
                                                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" EmptyDataText="[没有操作记录]"
                                                        Font-Names="Arial" CssClass="Table" OnRowDataBound="gvReport_RowDataBound" OnRowCommand="gvReport_RowCommand">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="lbtnDel" runat="server" OnClientClick="return confirm('您真的要删除一行数据吗？')"
                                                                        CommandName="Del" CommandArgument='<%# Eval("cute_Log_ID") %>' ToolTip="删除">
                                                                &nbsp;&nbsp;<img align="absmiddle" src="../images/note_delete.gif" style="width:16px; height:16px; border:none" title="删除" />&nbsp;&nbsp;
                                                                    </asp:LinkButton>
                                                                </ItemTemplate>
                                                                <HeaderStyle CssClass="gridtitle" />
                                                                <ItemStyle Width="35px" />
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="changeover_status" HeaderText="割接单状态" ReadOnly="True">
                                                                <HeaderStyle CssClass="gridtitle"></HeaderStyle>
                                                                <ItemStyle Width="170px" HorizontalAlign="Center"></ItemStyle>
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="happened_time" HeaderText="变更时间" ReadOnly="True">
                                                                <HeaderStyle CssClass="gridtitle"></HeaderStyle>
                                                                <ItemStyle Width="170px" HorizontalAlign="Center"></ItemStyle>
                                                            </asp:BoundField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px; height: 20px;">
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <table style="width: 730px; border: none">
                                        <tr>
                                            <td align="left" class="style2">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                <asp:Button ID="btnSave" runat="server" class="Button" Text="&nbsp;保&nbsp;&nbsp;&nbsp;&nbsp;存&nbsp;"
                                                    OnClientClick="saveValidate();" OnClick="btnSave_Click" />
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input id="Reset1" type="reset" value="&nbsp;重&nbsp;&nbsp;&nbsp;&nbsp;置&nbsp;"
                                                    class="Button" />
                                            </td>
                                            <td align="left" colspan="2">
                                                <asp:Label ID="lblMsg" runat="server" Font-Size="12px"></asp:Label>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                                &nbsp;
                                            </td>
                                            <td align="left">
                                            </td>
                                            <td align="left">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <input id="hidID" type="hidden" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
